<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<?php $form = ActiveForm::begin(['id' => 'rule-form','enableAjaxValidation' => true, 'enableClientValidation' => false,'options' => ['class' => 'form-validate']]); ?>
    <div class="form_content m_top_10">
        <div class="form-group">
            <label for="<?= $model->attributeLabels()['name'] ?>"><?= $model->attributeLabels()['name']; ?></label>
            <?= $form->field($model, 'name', ['template' => '{input}{error}'])->textInput(['class' => 'form-control', 'placeholder' => $model->attributeLabels()['name'], 'id' => $model->attributeLabels()['name'],'readonly'=>'readonly']); ?>
        </div>
        <div class="form-group">
            <label for="<?= $model->attributeLabels()['className'] ?>"><?= $model->attributeLabels()['className']; ?></label>
            <?= $form->field($model, 'className', ['template' => '{input}{error}'])->textInput(['class' => 'form-control', 'placeholder' => $model->attributeLabels()['className']]); ?>
        </div>

    </div>
    <div class="m_top_10 btn" style="display: none">
        <?= Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
    </div>
<?php ActiveForm::end(); ?>